home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 050a / s3data10.zip / LF21.DOC < prev    next >
Text File  |  1992-02-15  |  5KB  |  115 lines

  1. Program:   LineFix Package
  2.            CHR10.EXE v1.1
  3.            CHR13.EXE v1.1
  4. Version:   This is version 2.1 of the package
  5. Author:    George Spafford
  6. Date:      February 15, 1992
  7.  
  8. Purpose:
  9.  
  10. To quickly repair CR/LF line delimitters.  Often times, mainframes,
  11. or what have you, will leave out either the ASCII 10 or ASCII 13 at the
  12. end of a line.  This wreaks havoc with many importation programs.
  13. This set of programs will insert the necessary character.
  14.  
  15. Procedure:
  16.  
  17. There are two files to this package:
  18.  
  19.       CHR10.EXE         Repairs missing ASCII 13 characters.
  20.                         (This assumes that the ASCII 10 is currently present
  21.                          in the source file.)
  22.                          
  23.       CHR13.EXE         Repairs missing ASCII 10 characters.
  24.                         (This assumes that the ASCII 13 is currently present
  25.                          in the source file.)
  26.                          
  27. The usage for both programs is:
  28.  
  29.       CHR10 source target
  30.       CHR13 source target
  31.       
  32.       Source    This is your master file.
  33.       Target    This is the file to be created.
  34.       
  35.       Do NOT give source and target the same name.
  36.       
  37.       NOTE:  THERE ARE NO SCREEN WRITES WHILE THE PROGRAMS ARE ACTIVE.
  38.              In other words, be patient.  On my 33Mhz 386 with a 2Mb
  39.              cache, a 1 megabyte file takes 35 seconds to repair.
  40.       
  41. Both programs assume that the given character will be missing throughout the
  42. file.  They will not discern between a correctly delimitted line and an   
  43. incorrectly delimitted line.  I.E. half your file is missing ASCII 10 and half
  44. is not, then half your target file will have duplicated ASCII 10 codes.
  45.  
  46. If the data file was "streamed" to the file with no delimitter at all
  47. between records, you should use CUTIT to parse the records into 
  48. specifed lengths.  When CUTIT runs, it will automatically create the correct
  49. line delimitters (ASCII 13 followed by ASCII 10).
  50.  
  51. Fine you say, but George, what are these two codes you are babbling about?
  52. ASCII 10 (hex 0x0A) and ASCII 13 (hex 0x0D) form the end of a line in a DOS
  53. text file.  If 10 is missing, the file may appear to be correct when you view
  54. it with Vern Buerg's LIST or another viewer, but when you look at it in hex,
  55. using LIST's ALT-H command or a diskeditor, you can see that there is only one
  56. of the two codes.  If you look at this file right now, look for "0D 0A" in hex
  57. or look for what appears to be a music note followed by a solid square with a 
  58. hole in it.
  59.  
  60. Some programs will let you slide if you are missing one of two codes, some will
  61. not.  When in doubt, look at your source file using some form of editor or
  62. viewer that will allow you to see the source file in hex (Hexadecimal).
  63.  
  64. History:
  65.  
  66. v2.1  February 15, 1992
  67.  
  68.       Ooooops.  The bug that caused incomplete file transfers has been
  69.       corrected.  These programs are now compiled with Borland's C++ 3.0
  70.       optimizing compiler it is a really sweet language product to say the
  71.       least.
  72.  
  73. v2.0  December 2, 1991
  74.  
  75.       The programs are now coded in Borland C++ and are an order of magnitude
  76.       faster than v1.0's QB based code.
  77.       All filenames are now specified at the command line in order to
  78.       facilitate batch processing.
  79.  
  80. v1.0  May 10, 1991
  81.       
  82.       Initial release.  Program coded in QB 4.5.  
  83.       What can I say - it met the needs at the time, but toooooo slow.
  84.  
  85. I hope this program helps you evaluate some of your problems
  86. or even makes some solutions/benefits clear.  
  87.  
  88. This program is shareware.  It is not Freeware or public domain.  This
  89. product costs $5 for each concurrently used copy.  Please register this
  90. software if you find it useful.  If you have any suggestions, I'd REALLY like
  91. to hear those too.
  92.  
  93.           Sincerely,
  94.  
  95.           George Spafford
  96.           3001 LakeShore Drive, #329
  97.           St. Joseph, MI 49085
  98.  
  99.          Data:  (616) 468-5026  Queued Access BBS 19200-8-N-1
  100.                 FIDO:  1:2340/0 NEC/NC site:  Tim Akright - Sysop.
  101.                 
  102.  
  103. And now for the unpleasantries:
  104.  
  105. THE LINEFIX PACKAGE IS DISTRIBUTED AS IS.  THE AUTHOR (GEORGE 
  106. SPAFFORD) MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR 
  107. IMPLIED, INCLUDING BUT NOT LIMITED TO TO WARRANTIES OF 
  108. MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, WITH 
  109. RESPECT TO THIS SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL 
  110. THE AUTHOR BE LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, 
  111. LOST SAVINGS, OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL 
  112. DAMAGES ARISING OUT OF THE USE OF OR THE INABILITY TO USE 
  113. THIS PACKAGE OF PROGRAMS.
  114. ---------------------------------------------------------------------------
  115.